<script  src="//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script  src="https://unpkg.com/spritespin@3.4.3/release/spritespin.min.js"></script>



			<script >
				var winRef;
				function OpenWindow(){
					if(typeof(winRef) == 'undefined' || winRef.closed){
					//create new
						winRef = window.open('https://hum3d.com/3d-models/kamaz-54901-tractor-truck-2018/');
					} else{}
				}
			</script>
			<div class="imagesl">
				<div class="spritespin">
				</div>

			</div>
			<div class="conrtol-btns">

			</div>
			<script >
				var data = [
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-1.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-2.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-3.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-4.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-5.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-6.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-7.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-8.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-9.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-10.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-11.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-12.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-13.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-14.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-15.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-16.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-17.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-18.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-19.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-20.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-21.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-22.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-23.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-24.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-25.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-26.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-27.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-28.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-29.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-30.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-31.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-32.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-33.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-34.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-35.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-36.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-37.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-38.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-39.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-40.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-41.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-42.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-43.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-44.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-45.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-46.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-47.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-48.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-49.jpg",
												"https://360views.hum3d.com/original/KamAZ/014_KamAZ_54901_Tractor_Truck_2018/KamAZ_54901_Tractor_Truck_2018_360_720_50-50.jpg",
											];
				$(function(){
					$(".spritespin").spritespin({
						width  : 1280,
						height : 720,
						frames : 90,
						frameTime : 140,
						source : data,
						animate : true,
						responsive: true,
						plugins: [
							'360',
							'drag'
						],
						onFrame: function(e, data){
							$('.spritespin-slider').val(data.frame)
						},
						onInit: function(e, data){
							$('.spritespin-slider')
								.attr("min", 0)
								.attr("max", data.source.length - 1)
								.attr("value", 0)
								.on("input", function(e){
									SpriteSpin.updateFrame(data, e.target.value);
								})
						}
					});
					$('.spritespin-canvas, .spritespin-slider').on('click', function(){
						var api = $(".spritespin").spritespin("api");
						if (api.data.animate)
							api.stopAnimation();
					});
					var api = $(".spritespin").spritespin("api");
					$('.spritespin-canvas, .spritespin-slider').on('click', function(){
						if (api.data.animate)
							api.stopAnimation();
					});
					$(window).focus(function(){api.startAnimation();});
					$(window).blur(function(){api.stopAnimation();});
					$(window).scroll(function(){
						var scroll = $(window).scrollTop() + $(window).height();
						var offset = $(window).height() * 1.5;
						if (scroll > offset){
							api.stopAnimation();
						} else {
							api.startAnimation();
						}
					});
					$(".spritespin img").attr('alt', 'KamAZ 54901 Tractor Truck 2018 3d model' );
				});
			</script>  
